package com.igoal.dao;

import java.util.List;

import com.igoal.entity.ComponentEnum;
import com.igoal.entity.UserLike;

public interface UserLikeDAO extends GenericDao<UserLike, Long> {

	UserLike findByInformation(Long userId, ComponentEnum component, Long componentId);

	boolean isLikedThis(Long userId, ComponentEnum component, Long componentId);

	int countComponentLike(ComponentEnum component, Long componentId);

	List<UserLike> getRandomeLikeList(Long userId, ComponentEnum component, Long componentId);

	List<UserLike> getUserLikedThisComponent(ComponentEnum component, Long componentId, int pageNumber);

}
